﻿* Encoding: UTF-8.


***for Table 1; grade 4 only***

USE ALL.
COMPUTE filter_$=(grade = 4).
VARIABLE LABELS filter_$ 'grade = 4 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

FREQUENCIES VARIABLES=business religious police doctor president principal governor judge teacher 
    mayor
  /ORDER=ANALYSIS.


***for Table 1; all grades***

FILTER OFF.
USE ALL.
EXECUTE.

FREQUENCIES VARIABLES=business religious police doctor president principal governor judge teacher 
    mayor
  /ORDER=ANALYSIS.



***for Table 2; grades 4-6 only***

USE ALL.
COMPUTE filter_$=(grade  >= 4).
VARIABLE LABELS filter_$ 'grade  >= 4 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

FREQUENCIES VARIABLES=presdoes_coded_c
  /ORDER=ANALYSIS.



***for Table 2; all grades***

FILTER OFF.
USE ALL.
EXECUTE.

FREQUENCIES VARIABLES=presdoes_coded_c
  /ORDER=ANALYSIS.

 

***for Table 3***

FILTER OFF.
USE ALL.
EXECUTE.

FREQUENCIES VARIABLES=pres_job clinton_job obama_job
  /ORDER=ANALYSIS.



***for Table 4***

FILTER OFF.
USE ALL.
EXECUTE.

CROSSTABS
  /TABLES=obama_job_r BY pres_job_r
  /FORMAT=AVALUE TABLES
  /CELLS=COUNT COLUMN 
  /COUNT ROUND CELL.



***for Table 5***

USE ALL.
COMPUTE filter_$=(grade  >= 2).
VARIABLE LABELS filter_$ 'grade  >= 2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

FREQUENCIES VARIABLES=pres_hard_r pres_honest_r pres_know_r pres_best_r
  /ORDER=ANALYSIS.



***for Table A.1***

FILTER OFF.
USE ALL.
EXECUTE.

FREQUENCIES VARIABLES=locatnum_region grade
  /ORDER=ANALYSIS.



***for Table A.2***

FILTER OFF.
USE ALL.
EXECUTE.

DESCRIPTIVES VARIABLES=president pres_job_r pres_hard_r pres_honest_r pres_know_r 
    pres_best_r
  /STATISTICS=MEAN STDDEV.


***Analyses for Supplementary Online Materials***

***for Table SC.1***

FILTER OFF.
USE ALL.
EXECUTE.

ONEWAY president pres_job_r pres_hard_r pres_honest_r pres_know_r pres_best_r BY grade
  /STATISTICS DESCRIPTIVES 
  /MISSING ANALYSIS.



***for Table SC.2***

FILTER OFF.
USE ALL.
EXECUTE.

ONEWAY president pres_job_r pres_hard_r pres_honest_r pres_know_r pres_best_r BY locatnum_region
  /STATISTICS DESCRIPTIVES
 /MISSING ANALYSIS.



***for Table SC.3***

FILTER OFF.
USE ALL.
EXECUTE.

CROSSTABS
  /TABLES=presdoes_coded_c BY locatnum_region
  /FORMAT=AVALUE TABLES
  /STATISTICS=CHISQ 
  /CELLS=COUNT COLUMN 
  /COUNT ROUND CELL.



***for Table SC.4***

FILTER OFF.
USE ALL.
EXECUTE.

CORRELATIONS
  /VARIABLES=president pres_job_r pres_hard_r pres_honest_r pres_know_r pres_best_r
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.



